package com.zhongzhi.util;

import java.io.Serializable;

import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * 
 * @author Administrator
 * 此对象为controller与service层之间的数据传递
 */
@Data
@NoArgsConstructor
public class Bo implements Serializable{
	/**
	 * service向controller传递
	 */
	private static final long serialVersionUID = 4709710564792623052L;

	
	private boolean bool = true;
	private Integer mistake = 200;
	private String message = "执行失败";
	private Integer size = 0;
	private Object object =null;
	public Bo(boolean bool) {
		super();
		this.bool = bool;
	}
	public Bo(Object object) {
		super();
		this.object = object;
	}
	public Bo(Throwable e) {
		super();
		this.bool = false;
		this.object = e;
	}
	public Bo(String message) {
		super();
		this.message = message;
	}
	public Bo(boolean bool,Integer mistake, String message, Integer size, Object object) {
		super();
		this.bool = bool;
		this.mistake = mistake;
		this.message = message;
		this.size = size;
		this.object = object;
	}
	
	
	
}
